﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZL.CRM.CommonEntity.Common
{
    public class YajInfo
    {

        /// <summary>
        ///  实体卡卡号
        /// </summary>
        public string Ccardno { get; set; }

        /// <summary>
        ///  工本费
        /// </summary>
        public decimal Cfee { get; set; }

        /// <summary>
        ///  押金
        /// </summary>
        public decimal Cdeposit { get; set; }

        /// <summary>
        ///  收款营业日
        /// </summary>
        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime Cskyydate { get; set; }

        /// <summary>
        ///  收款机构id
        /// </summary>
        public int Cskbrid { get; set; }

        /// <summary>
        ///  收款机构名称
        /// </summary>
        public string Cskbrname { get; set; }

        /// <summary>
        ///  收款品牌id
        /// </summary>
        public int Cskppid { get; set; }

        /// <summary>
        ///  收款品牌名称
        /// </summary>
        public string Cskppname { get; set; }

    }
    public class YajInfoMapper : ClassMapper<YajInfo>
    {
        public YajInfoMapper()
        {
            Table("#YajInfo");
            Map(f => f.Ccardno).Column("Ccardno");
            Map(f => f.Cfee).Column("Cfee");
            Map(f => f.Cdeposit).Column("Cdeposit");
            Map(f => f.Cskyydate).Column("Cskyydate");
            Map(f => f.Cskbrid).Column("Cskbrid");
            Map(f => f.Cskbrname).Column("Cskbrname");
            Map(f => f.Cskppid).Column("Cskppid");
            Map(f => f.Cskppname).Column("Cskppname");

        }

    }
}
